package com.example.tokendemo.core.dao;

import com.example.tokendemo.core.entity.SysMenuEntity;
import com.example.tokendemo.core.entity.SysRoleEntity;
import com.example.tokendemo.core.entity.SysUserEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2022-01-06 15:20:31
 */
@Mapper
public interface SysUserDao extends BaseMapper<SysUserEntity> {

    SysUserEntity selectUserByName(String username);

	List<SysRoleEntity> selectSysRoleByUserId(Long userId);

    List<SysMenuEntity> selectSysMenuByUserId(Long userId);

    int addUser(SysUserEntity userEntity);
}
